package com.czu;

import com.czu.service.HelloWorld;
import com.czu.service.impl.HelloWorldImpl;
import org.apache.cxf.jaxws.JaxWsServerFactoryBean;

public class server {
    public static void main(String[] args) {
        JaxWsServerFactoryBean factory = new JaxWsServerFactoryBean();

        factory.setAddress("http://localhost:8080/hello");
        factory.setServiceClass(HelloWorldImpl.class);
        factory.setServiceBean(new HelloWorldImpl());

        factory.create();
        System.out.println("发布成功");
    }
}
